package io.renren.modules.erp.service.impl;

import java.util.Map;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.erp.dao.BoxInfoDao;
import io.renren.modules.erp.entity.BoxInfoEntity;
import io.renren.modules.erp.service.BoxInfoService;


@Service("boxInfoService")
public class BoxInfoServiceImpl extends ServiceImpl<BoxInfoDao, BoxInfoEntity> implements BoxInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<BoxInfoEntity> page = this.selectPage(
                new Query<BoxInfoEntity>(params).getPage(),
                new EntityWrapper<BoxInfoEntity>()
        );

        return new PageUtils(page);
    }

}
